package com.jun.junapiclient;

import com.jun.junapiclient.ApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Data
@ComponentScan
@Configuration
@ConfigurationProperties(prefix = "xuan.api.client")
public class XuanApiClientConfig {
	private String accessKey;
	private String secretKey;

	@Bean
	public ApiClient xuanApiClient() {
		return new ApiClient(accessKey, secretKey);
	}

}